import { createRouter, createWebHistory } from 'vue-router';

// [vue-router 4 中文文档](https://next.router.vuejs.org/zh/api/)
const basicRoutes = [
  {
    path: '/',
    component: () => import('/@/views/Home.vue'),
    meta: {
      title: '首页'
    }
  },
  {
    path: '/dynamic-form',
    component: () => import('/@/views/demo/DynamicForm.vue'),
    meta: {
      title: '动态表单'
    }
  },
  {
    path: '/kanban',
    component: () => import('/@/views/demo/Kanban/index.vue'),
    meta: {
      title: '动态表单'
    }
  }
]

export const router = createRouter({
  history: createWebHistory(),
  routes: basicRoutes,
  strict: true,
  scrollBehavior: () => ({ left: 0, top: 0, behavior: 'smooth' }),
});
